﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="display-reviews.aspx.cs" Inherits="display_reviews" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNestedHeader"
    runat="Server">
    <link href="<%= SiteGlobals.BaseUrl %>thirdparty/rateit/rateit.css" rel="stylesheet"
        type="text/css" />
    <script src="<%= SiteGlobals.BaseUrl %>javascript/jquery.min.js" type="text/javascript"></script>
    <script src="<%= SiteGlobals.BaseUrl %>thirdparty/rateit/jquery.rateit.js" type="text/javascript"></script>
    <script src="<%= SiteGlobals.BaseUrl %>thirdparty/colorbox/jquery.colorbox-min.js"
        type="text/javascript"></script>
    <link href="<%= SiteGlobals.BaseUrl %>thirdparty/colorbox/colorbox.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".writeReview").colorbox({ iframe: true, width: "60%", height: "90%" });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <a href="<%= SiteGlobals.BaseUrl %>write-review.aspx?id=<% =_ProductId %>" class="button medium green writeReview">
        Write Reviews</a>
    <br class="clearfix" />
    <div class="grid_18 alpha product-boxes text-left">
        <asp:Repeater runat="server" ID="rptProductReviews">
            <ItemTemplate>
                <div class="border-radius-common">
                    <div class="grid_8 alpha alpha details_text_general">
                        <%# Eval("CustomerName")%>
                        wrote on
                        <%# Eval("ReviewDate") != null ? string.Format("{0:dd/MM/yyyy}", Eval("ReviewDate")) : string.Empty%>
                    </div>
                    <div class="grid_8 alpha omega">
                        <div class="rateit" data-rateit-value="<%# Eval("RatingValue")%>" data-rateit-ispreset="true"
                            data-rateit-readonly="true">
                        </div>
                    </div>
                    <br class="clear" />
                    <div class="grid_16 alpha details_text_general">
                        <%# Eval("ReviewText")%>
                    </div>
                    <br class="clear" />
                </div>
                <br />
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
